{% extends 'news/base.html' %}

{% block title %}
    ⽤户中⼼
{% endblock %}

{% block script %}
    <script type="text/javascript" src="../../static/news/js/jquery-1.12.4.min.js"></script>
{% endblock %}

{% block content %}
    <div class="conter_con">
        <div class="user_menu_con fl">
                <div class="user_center_pic">
                <img src={% if context.user.avatar_url %} {{ context.user.avatar_url }}
                {% else %} "../../static/news/images/user_pic.png"
                {% endif %} alt="⽤用户图⽚片">
                </div>
                <div class="user_center_name">{{ context.user.nick_name }}</div>
                <div style="text-align: center" id="usersignature">{{ context.user.signature }}</div>
                <ul class="option_list">
                    <li class="active"><a href="{{ url_for('user.base_info') }}" target="main_frame">基本资料料</a></li>
                    <li><a href="{{ url_for('user.pic_info') }}" target="main_frame">头像设置</a></li>
                    <li><a href="{{ url_for('user.user_follow') }}" target="main_frame">我的关注</a></li>
                    <li><a href="{{ url_for('user.pass_info') }}" target="main_frame">密码修改</a></li>
                    <li><a href="{{ url_for('user.user_collection') }}" target="main_frame">我的收藏</a></li>
                    <li><a href="{{ url_for('user.news_release') }}" target="main_frame">新闻发布</a></li>
                    <li><a href="{{ url_for('user.news_list') }}" target="main_frame">新闻列列表</a></li>
                </ul>
                </div>
        <div class="user_con fr">
            <iframe src="{{ url_for('user.base_info') }}" frameborder="0" name="main_frame" class="main_frame" id="main_frame"></iframe>
        </div>
    </div>
{% endblock %}